/// 在这里注册所有的payload表单
use crate::schemas as s;
use serde::{Deserialize, Serialize};

#[derive(Debug, Serialize, Deserialize)]
#[serde(tag = "type", content = "data")]
pub enum Payload {
    ListQuery(s::base::ListQuery),
    Pagination(s::base::Pagination),
    CreateProject(s::project::Create),
    UpdateProject(s::project::Update),
    OperateProject(s::project::Operate),
    CreateDsFile(s::datasource::CreateFile),
    CreateDsServe(s::datasource::CreateServe),
    UpdateDsFile(s::datasource::UpdateFile),
    UpdateDsServe(s::datasource::UpdateServe),
    OperateDatasource(s::datasource::Operate),
    CreateAiConfig(s::ai::CreateConfig),
    UpdateAiConfig(s::ai::UpdateConfig),
    OperateAiConfig(s::ai::OperateConfig),
    CreateDsDescription(s::datasource::CreateDsDescription)
}
